<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="./js/jquery-1.12.4.min.js"></script>
    <script type="text/javascript">
        $.ajax({
                url: './js/data.json',
                type: 'get',
                dataType: "json",
            })
            .done(function () {
                alert("OK");

            })
            .fail(function () {
                alert("失败");
            })


    </script>
    <style type="text/css"></style>
    <title>Document</title>
</head>

<body>
    <h1>text server</h1>

</body>

</html>